
import 'dart:convert';

List<LevelOption> levelOptionFromJson(String str) => List<LevelOption>.from(json.decode(str).map((x) => LevelOption.fromJson(x)));

String levelOptionToJson(List<LevelOption> data) => json.encode(List<dynamic>.from(data.map((x) => x.toJson())));

class LevelOption {
    LevelOption({
        this.value,
        this.label,
        this.color,
    });

    String? value;
    String? label;
    String? color;

    factory LevelOption.fromJson(Map<String, dynamic> json) => LevelOption(
        value: json["value"],
        label: json["label"],
        color: json["color"],
    );

    Map<String, dynamic> toJson() => {
        "value": value,
        "label": label,
        "color": color,
    };
}
